using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using EZCRS.HCMS.DataAcl;
using EZCRS.HCMS.Web;

namespace EZCRS.HCMS.Web.manage.booklog
{
    public partial class noshow : ManageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            CheckModule(47);

            AjaxPro.Utility.RegisterTypeForAjax(typeof(EZCRS.HCMS.myajax.CardUserLog));

           
            if (!Page.IsPostBack)
            {
                ddlsource.DataSource = DataAcl.Common.BookFrom();
                ddlsource.DataTextField = "Value";
                ddlsource.DataValueField = "Key";
                ddlsource.DataBind();
                ddlsource.SelectedValue = "0";

                bstart.Attributes.Add("onclick", "event.cancelBubble=true;showCalendarTA('bstart',false,'bstart','bstart',null);");
                bend.Attributes.Add("onclick", "event.cancelBubble=true;showCalendarTA('bend',false,'bend','bend',null);");
                cstart.Attributes.Add("onclick", "event.cancelBubble=true;showCalendarTA('cstart',false,'cstart','cstart',null);");
                cend.Attributes.Add("onclick", "event.cancelBubble=true;showCalendarTA('cend',false,'cend','cend',null);");

                bstart.Attributes.Add("onblur", "if(!chkdate(this.value))this.value='yyyy-MM-dd';");
                bend.Attributes.Add("onblur", "if(!chkdate(this.value))this.value='yyyy-MM-dd';");
                cstart.Attributes.Add("onblur", "if(!chkdate(this.value))this.value='yyyy-MM-dd';");
                cend.Attributes.Add("onblur", "if(!chkdate(this.value))this.value='yyyy-MM-dd';");
            }
        }
    }
}
